package tasks.OpportunitiesBaseData.ManualUpdateView.ContextualData;
import java.util.ArrayList;
import java.util.Arrays;

import ibm.widgets.WTable;
import resources.tasks.OpportunitiesBaseData.ManualUpdateView.ContextualData.SingleLineVerifierHelper;
import appobjects.OpportunitiesBaseDataView.WebSphere.ManualUpdateView;

import com.rational.test.ft.*;
import com.rational.test.ft.object.interfaces.*;
import com.rational.test.ft.object.interfaces.SAP.*;
import com.rational.test.ft.object.interfaces.WPF.*;
import com.rational.test.ft.object.interfaces.dojo.*;
import com.rational.test.ft.object.interfaces.siebel.*;
import com.rational.test.ft.object.interfaces.flex.*;
import com.rational.test.ft.object.interfaces.generichtmlsubdomain.*;
import com.rational.test.ft.script.*;
import com.rational.test.ft.value.*;
import com.rational.test.ft.vp.*;
import com.ibm.rational.test.ft.object.interfaces.sapwebportal.*;

import core.controls.Table;
import core.exceptions.ResultFailureException;
/**
 * Description   : Functional Test Script
 * @author angel.tsvetkov
 */
public class SingleLineVerifier extends SingleLineVerifierHelper
{
	private WTable singleLine = null;
	
	public SingleLineVerifier()
	{
		appobjects.OpportunitiesBaseDataView.WebSphere.ManualUpdateView maualView = new ManualUpdateView();
		singleLine = maualView.getSingleLine();
	}
	
	public ArrayList<String> getValues()
	{
		ArrayList<String> content = new ArrayList<String>();
		final int HEADER = 1;
		int counter = 0;
		
		try {
			String[][] tableContent = Table.transformTable(singleLine);
			
			for(String[] row:tableContent)
			{
				if(counter == HEADER)
				{
					counter++;
					continue;
				}
				
				content = (ArrayList<String>) Arrays.asList(row);
			}
			
		} catch (ResultFailureException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
		return content;
	}
	
	public void testMain(Object[] args) 
	{
		// TODO Insert code here
	}
}

